package com.comment.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.smartstruts.action.Action;
import org.smartstruts.action.ActionForm;

import com.comment.service.CommentService;

/**
 * 显示论坛列表
 * 
 * @author hfsd0909
 * 
 */
public class ListCommentAction extends Action {
	private CommentService cs = new CommentService();

	@Override
	public String execute(ActionForm form, HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		List<?> commentList = cs.findAllComment();
		request.setAttribute("commentList", commentList);
		return "success";
	}

}